package pl.koziolekweb.szkola.GHRysujBetter;

// GH-RysujBetter/Kreska.java
 
import java.awt.Color;
import java.awt.Graphics;

class Kreska {
    Color color;
    int x,y,xOLD,yOLD;
    Kreska(Color c, int xn, int yn, int xo, int yo) {
        color = c;
        x     = xn;
        y     = yn;
        xOLD  = xo;
        yOLD  = yo;
    }
    void narysujSie(Graphics g) {
        g.setColor(color);
        g.drawLine(xOLD,yOLD,x,y);
    }
}
